package com.ruoyi.supplier.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.ruoyi.common.excel.annotation.ExcelDictFormat;
import com.ruoyi.common.excel.convert.ExcelDictConvert;
import lombok.Data;
import java.util.Date;



/**
 * 出入库记录视图对象
 *
 * @author ruoyi
 * @date 2023-09-18
 */
@Data
@ExcelIgnoreUnannotated
public class StockRecordVo {

    private static final long serialVersionUID = 1L;

    /**
     * 编号
     */
    @ExcelProperty(value = "编号")
    private Integer stockRecordId;

    /**
     * 仓库id
     */
    @ExcelProperty(value = "仓库id")
    private Integer stockId;

    /**
     * sku编号
     */
    @ExcelProperty(value = "sku编号")
    private Integer productSkuId;

    /**
     * 类型（10入库 20出库）
     */
    @ExcelProperty(value = "类型", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "1=0入库,2=0出库")
    private Integer type;

    /**
     * 数量
     */
    @ExcelProperty(value = "数量")
    private Integer shouldNum;

    /**
     * 当前库存数量
     */
    @ExcelProperty(value = "当前库存数量")
    private Integer stockNum;


}
